package entity

import "fmt"

// ProxyEntity 代理配置表
type ProxyEntity struct {
	BaseModule
	Name        string
	Host        string
	Port        int
	Protocol    string
	IsAnonymous bool
	IsActive    bool
	LoadBalance string
	Description string
	Auth        string
}

// TableName 自定义表名
func (u ProxyEntity) TableName() string {
	return "dl_proxy"
}

func (u ProxyEntity) EntityNameWithAlias(alias string) string {
	return fmt.Sprintf("%s as %s", u.TableName(), alias)
}
